<script src="<?php echo $ruta; ?>/js/jquery-1.4.js" type="text/javascript"></script>
<script src="<?php echo $ruta; ?>/js/jquery.easing.js" type="text/javascript"></script>
<script src="<?php echo $ruta; ?>/js/jquery.cookie.js" type="text/javascript"></script>
<script src="<?php echo $ruta; ?>/js/jquery.easing.js" type="text/javascript"></script>
<script src="<?php echo $ruta; ?>/js/custom.js" type="text/javascript"></script>
<!--[if lt IE 7]>
  <script  src="<?php echo $ruta; ?>/js/DD_belatedPNG.js" type="text/javascript"></script>
  <script type="text/javascript">DD_belatedPNG.fix('.h3,#recent-projects h3,.homepage-icon, #top-bar li,.current,.hover,#navigation-middle,#navigation-left,#navigation-right,.top,.middle,.middle-bottom,.bottom,#top-bar,#middle,#middle-home,#bottom-bar,#bottom-bar-home,#logo,.start.,.stop,.p_details,#arrow,.sticker,#arrow');</script>
 <![endif]-->
<script type="text/javascript" src="<?php echo site_url(); ?>/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="<?php echo site_url(); ?>/ckeditor/adapters/jquery.js"></script>
<script type="text/javascript">
    /*window.onload = function(){
        // Listen to the double click event.
        if ( window.addEventListener )
            document.body.addEventListener( 'dblclick', onDoubleClick, false );
        else if ( window.attachEvent )
            document.body.attachEvent( 'ondblclick', onDoubleClick );
    };

    function onDoubleClick( ev ){
        // Get the element which fired the event. This is not necessarily the
        // element to which the event has been attached.
        var element = ev.target || ev.srcElement;

        // Find out the div that holds this element.
        var name;
        do{
            element = element.parentNode;
        }
        while ( element && ( name = element.nodeName.toLowerCase() ) && ( name != 'div' || element.className.indexOf( 'editable' ) == -1 ) && name != 'body' )

        if ( name == 'div' && element.className.indexOf( 'editable' ) != -1 )
            replaceDiv( element );
    }

    var editor;

    function replaceDiv( div ){
        if ( editor )
            editor.destroy();
        
        CKEDITOR.config.toolbar_Full =
        [
            { name: 'document',    items : [ 'Save' ] },
            { name: 'basicstyles', items : [ 'Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat' ] },
            { name: 'links',       items : [ 'Link','Unlink','Anchor' ] },
            { name: 'insert',      items : [ 'Image','Table','HorizontalRule','Smiley','SpecialChar','PageBreak' ] },
            { name: 'styles',      items : [ 'Styles','Format','Font','FontSize' ] },
            { name: 'colors',      items : [ 'TextColor','BGColor' ] }
        ];
        editor = CKEDITOR.replace( div );
    }*/

</script>
